package Day010_排序算法_异常.ZuoYe;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入两个整数:");
        int i1 = sc.nextInt();
        int i2 = sc.nextInt();

        try {
            int i3 = i1 / i2;
            System.out.println(i3);
        } catch (Exception e) {
            System.out.println("第二个数不能为0！");
        }
    }
}
